<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="main">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>TouchInput 类</title>
	<link rel="stylesheet" href="../inc/css/style.min.css" />
	<script type="text/javascript" src="../inc/js/lib/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="../inc/js/common.js"></script>
</head>
<body>

	<div class="main">

		<h1 class="main__title--h1 main__title--h1--v07">TouchInput 类</h1>
		<ul class="breadcrumb">
			<li>JS 库</li>
			<li>&gt;</li>
			<li>TouchInput 类</li>
		</ul>
		<p>处理鼠标和触屏输入信息的静态类。</p>

		<div class="main__section">
			<h2 class="main__title--h2">索引</h2>
			<b>方法</b>
			<ul class="main__ul--inline">
				<li><a href="#m01">clear</a> <span>static</span></li>
				<li><a href="#m02">initialize</a> <span>static</span></li>
				<li><a href="#m03">isCancelled</a> <span>static</span></li>
				<li><a href="#m04">isLongPressed</a> <span>static</span></li>
				<li><a href="#m05">isMoved</a> <span>static</span></li>
				<li><a href="#m06">isPressed</a> <span>static</span></li>
				<li><a href="#m07">isReleased</a> <span>static</span></li>
				<li><a href="#m08">isRepeated</a> <span>static</span></li>
				<li><a href="#m09">isTriggered</a> <span>static</span></li>
				<li><a href="#m10">update</a> <span>static</span></li>
			</ul>

			<b>属性</b>
			<ul class="main__ul--inline">
				<li><a href="#p01">date</a> <span>static</span></li>
				<li><a href="#p02">keyRepeatInterval</a> <span>static</span></li>
				<li><a href="#p03">keyRepeatWait</a> <span>static</span></li>
				<li><a href="#p04">wheelX</a> <span>static</span></li>
				<li><a href="#p05">wheelY</a> <span>static</span></li>
				<li><a href="#p06">x</a> <span>static</span></li>
				<li><a href="#p07">y</a> <span>static</span></li>
			</ul>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">方法</h2>

			<div id="m01" class="main__subsection">
<pre class="main__pre--code">
clear () <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">清除全部的输入数据。</p>
			</div><!-- /div -->

			<div id="m02" class="main__subsection">
<pre class="main__pre--code">
initialize () <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">初始化输入系统。</p>
			</div><!-- /div -->

			<div id="m03" class="main__subsection">
<pre class="main__pre--code">
isCancelled () <span class="pre__type">Boolean</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">检测鼠标右键是否刚刚被按下。</p>
				<div class="params">
					<h4>返回值：</h4>
					<p><span class="pre__type">Boolean:</span><br />
					若鼠标右键刚刚被按下，返回 true</p>
				</div>
			</div><!-- /div -->

			<div id="m04" class="main__subsection">
<pre class="main__pre--code">
isLongPressed () <span class="pre__type">Boolean</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">检测鼠标左键或者触屏是否长时间被按住。</p>
				<div class="params">
					<h4>返回值：</h4>
					<p><span class="pre__type">Boolean:</span><br />
					若鼠标左键或者触屏长时间被按住，返回 true</p>
				</div>
			</div><!-- /div -->

			<div id="m05" class="main__subsection">
<pre class="main__pre--code">
isMoved () <span class="pre__type">Boolean</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">检测鼠标或手指在触屏上是否发生移动。</p>
				<div class="params">
					<h4>返回值：</h4>
					<p><span class="pre__type">Boolean:</span><br />
					若鼠标或手指在触屏上发生移动，返回 true</p>
				</div>
			</div><!-- /div -->

			<div id="m06" class="main__subsection">
<pre class="main__pre--code">
isPressed () <span class="pre__type">Boolean</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">检测鼠标或者触屏是否正被按下。</p>
				<div class="params">
					<h4>返回值：</h4>
					<p><span class="pre__type">Boolean:</span><br />
					若鼠标或触屏正被按下，返回 true</p>
				</div>
			</div><!-- /div -->

			<div id="m07" class="main__subsection">
<pre class="main__pre--code">
isReleased () <span class="pre__type">Boolean</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">检测鼠标左键是否弹起或者手指是否离开触屏。</p>
				<div class="params">
					<h4>返回值：</h4>
					<p><span class="pre__type">Boolean:</span><br />
					若鼠标左键弹起或者手指离开触屏，返回 true</p>
				</div>
			</div><!-- /div -->

			<div id="m08" class="main__subsection">
<pre class="main__pre--code">
isRepeated () <span class="pre__type">Boolean</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">检测鼠标左键或者触屏是否刚刚被按下，或者是伪重复按键是否发生。</p>
				<div class="params">
					<h4>返回值：</h4>
					<p><span class="pre__type">Boolean:</span><br />
					若鼠标左键或者触屏被重复按下，返回 true</p>
				</div>
			</div><!-- /div -->

			<div id="m09" class="main__subsection">
<pre class="main__pre--code">
isTriggered () <span class="pre__type">Boolean</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">检测鼠标左键或者触屏是否刚刚被按下。</p>
				<div class="params">
					<h4>返回值：</h4>
					<p><span class="pre__type">Boolean:</span><br />
					若鼠标左键或者触屏刚刚被按下，返回 true</p>
				</div>
			</div><!-- /div -->

			<div id="m10" class="main__subsection">
<pre class="main__pre--code">
update () <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">更新输入数据。</p>
			</div><!-- /div -->

		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">属性</h2>

			<div id="p01" class="main__subsection">
<pre class="main__pre--code">
date <span class="pre__type">Number</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">[只读]距离上一次按键所经过的时间（毫秒）。</p>
			</div><!-- /div -->

			<div id="p02" class="main__subsection">
<pre class="main__pre--code">
keyRepeatInterval <span class="pre__type">Number</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">更新重复按键状态的间隔时间（帧）。</p>
			</div><!-- /div -->

			<div id="p03" class="main__subsection">
<pre class="main__pre--code">
keyRepeatWait <span class="pre__type">Number</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">进入长按状态前的等待时间（帧）。</p>
			</div><!-- /div -->

			<div id="p04" class="main__subsection">
<pre class="main__pre--code">
wheelX <span class="pre__type">Number</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">[只读]水平滚动量。</p>
			</div><!-- /div -->

			<div id="p05" class="main__subsection">
<pre class="main__pre--code">
wheelY <span class="pre__type">Number</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">[只读]垂直滚动量。</p>
			</div><!-- /div -->

			<div id="p06" class="main__subsection">
<pre class="main__pre--code">
x <span class="pre__type">Number</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">[只读]最近一次触屏事件在 canvas 区域中的 X 坐标。</p>
			</div><!-- /div -->

			<div id="p07" class="main__subsection">
<pre class="main__pre--code">
y <span class="pre__type">Number</span> <span class="pre__static">[static]</span>
</pre>
				<p class="mb10px">[只读]最近一次触屏事件在 canvas 区域中的 Y 坐标。</p>
			</div><!-- /div -->


		</div><!-- /main__section -->


	</div><!-- /main -->

</body>
</html>
